package sample3.evaluators;

import sample3.visitor.Visitor;

public class IntEvaluator implements Evaluator {
	private int value;

	public int evaluate() {
		return value;
	}

	public int getValue() {
		return value;
	}

	public IntEvaluator(int value) {
		super();
		this.value = value;
	}

	public String toTreeString(String indent) {
		return "\n" + indent + "Int " + value;
	}

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}
}
